<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>旋转效果</title>
  <style>
    img {
      width: 200px;
      transition: all 2s;
    }

    /* 鼠标悬停到图片上面，添加旋转效果 */
    img:hover {
      transform: rotate(360deg);
      /* 更改圆心为右下角 */
      transform-origin: right bottom;
    }
  </style>
</head>

<body>
  <img src="./images/rotate.png" alt="">
</body>

</html>